use actix_web::web::ServiceConfig;
use crate::controller::index_controller as index;
 
pub(crate) fn index_routers(service_config: &mut ServiceConfig) {
    service_config
        .service(actix_web::web::scope("/admin/index")
            .service(actix_web::web::resource("/send_reg_code").route(actix_web::web::get().to(index::push_reg_code)))
            .service(actix_web::web::resource("/login").route(actix_web::web::post().to(index::login)))
            .service(actix_web::web::resource("/logout").route(actix_web::web::post().to(index::logout)))
        );
}


